/*
 * deviceselfchecking 设备自检
 */
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14

Item {
    id: root

    /* property 定义开始 */
    property url loadingIcon: "qrc:/icons/device_checking_loading.gif" // 加载图标
    property url successIcon: "qrc:/icons/device_checking_success.png" // 通过图标
    property url errorIcon: "qrc:/icons/device_checking_error.png" // 故障图标
    /* property 定义结束 */

    Item {
        anchors.fill: parent

        ColumnLayout {
            anchors.fill: parent
            anchors.topMargin: 20
            anchors.bottomMargin: 20

            // 热盖自检
            Item {
                id: regai
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "热盖自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }

            // 荧光检测自检
            Item {
                id: yingguangjiance
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "荧光检测自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }

            // 加热块自检
            Item {
                id: jiarekuai
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "加热块自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }

            // 电机自检
            Item {
                id: dianji
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "电机自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }

            // 风扇自检
            Item {
                id: fengshan
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "风扇自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }

            // 水盒自检
            Item {
                id: shuihe
                Layout.fillWidth: true
                Layout.fillHeight: true
                Layout.rightMargin: 42

                RowLayout {
                    anchors.fill: parent

                    Label {
                        Layout.fillWidth: true
                        Layout.fillHeight: true
                        font.family: "Alibaba PuHuiTi"
                        font.pixelSize: 17
                        color: "#FF222222"
                        text: "水盒自检"
                        verticalAlignment: Text.AlignVCenter
                        horizontalAlignment: Text.AlignHCenter
                    }

                    AnimatedImage {
                        Layout.preferredWidth: 21
                        Layout.preferredHeight: 11
                        Layout.fillHeight: true
                        fillMode: Image.PreserveAspectFit
                        mipmap: true
                        smooth: true
                        source: "qrc:/icons/device_checking_loading.gif"
                    }
                }
            }
        }
    }
}
